Looking at your answer your function is correct.
If the software is telling you something's wrong, it has to be with the formatting; maybe they want you to simplify the second part of the function. If that is the case, use the distributive property:
0.25(x-200)+15
0.25*x-0.25*200+15
0.25x-50+15
0.25x-35