I believe the solution has a couple of numbers in there that are off for this question:
Shouldn’t r = x/4% and not x/3% if it’s every three months, which every year has four sets of three months? Or put more simply four quarters in a year.
Later on, shouldn’t the 400 be multiplied over and not 300 as written?