Let R = registration fee and M = monthly fee.
3M = the monthly fee for three months and the total for three months is
R + 3M = 315
7M = the monthly fee for 7 months and the total for 7 months is
R + 7M = 535
Subtract the first from the second:
4M = 220 => M = 55 and R = 150