C = 020° C
D = -2° (Westerly Deviation - Deviation West Compass Best)
M = 018° M
V = 24° W (Variation measured at the aircraft - Variation West Magnetic Best)
T = 354° T

The RMI shows a heading of 020° and a bearing to the beacon of 300°, therefore the Relative Bearing must be 300° - 020° = 280°

Heading + Relative Bearing = QDM / QUJ (in this case QUJ as we want True Brg)

354° + 280° = QUJ

QUJ = 634° (-360) = 274° T