Cody and Paul had some button magnets. If Cody gave Paul 7 button magnets. He would 3/4 as many button magnets as Paul. If Cody gave Paul 27 button magnets, he would have 1/3 as many button magnets as Paul. How many button magnets did Cody have?
C-7=3/4(P+7)
4(c-7)=3(P+7)
4C-28=3P+21
4C-3P=21+28
4C-3P=49 (1)
C-27=1/3(P+27)
3C-81=P+27
3C-P=108 (2)
check what I have done and then solve simultaneously.