solution for R1A-C