Shop A and Shop B had a number of turtles in the ratio 1:3. After Shop A sold 35 turtles and Shop B sold 174 turtles, the ratio of turtles left in Shop A to that in Shop B is 3:2 How many turtles did Shop A and Shop B have altogether at first?

shopA : shopB = 1: 3 = x : 3x

after sale:
shop A had x - 35
shop B had 3x - 174

shopA : shopB = (x-35) : (3x-174) = 3 : 2

(x-35)/(3x-174) = 3/2
9x - 522 = 2x - 70
7x = 452
x = 452/7
total original count = 4x = 4(452/7) = fractional turtles

this question is bogus, check your typing, then adjust my
solution once you found the error