On the exam
Label each variance by its effect on income. Build the flexible budget at actual volume with budgeted rates, then take flexible minus static for volume and actual minus flexible for prices and spending. Check that the two parts add up to the static variance.