Just remember:
Deviation East COMPASS least ie the compass direction is a lesser value than the magnetic direction.
Deviation West COMPASS BEST ie the compass direction is greater than the magnetic direction.
Variation East MAGNETIC is least ie the magnetic direction is less than the true direction
Variation West MAGNETIC is best ie the the magnetic direction is greater than the true direction.
The other thing to remember is that the figures in the question calculate a true HEADING to which the drift must be apllied to get the track.
Remembering that we always fly from heading to track on the compass the 9 degree right drift would give the track of 280.