The true course is 042 with variation west being best (so add the 6 to the 042 giving 048 magnetic).

Then to correct for the deviation the nearest compass deviation reading is taken from 045 with it indicating 4 degrees less than actual magnetic heading so add 4 degrees onto the 048 (magnetic) giving the answer of 052 (compass).