document.write( "Question 1184818: Gary bought 5/4 as many mango tarts as pineapple tarts from a shop. He gave 30 mango tarts and 15 pineapple tarts to his brother. The number of mango tarts left to the number of pineapple tarts left was 2:5. How many mango tarts and pineapple tarts did Gary buy from the shop? \n" ); document.write( "
Algebra.Com's Answer #815465 by josgarithmetic(39625)\"\" \"About 
You can put this solution on YOUR website!
Gary bought \"5p%2F4\" of Mango tarts and \"p\" of Pineapple tarts.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "He gave 30 of the mango and 15 of the pineapple to his brother so remaining he has\r
\n" ); document.write( "\n" ); document.write( "\"5p%2F4-30\" of the mango and \"p-15\" of the pineapple.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Ratio of mango to pineapple he still have is 2:5.\r
\n" ); document.write( "\n" ); document.write( "\"highlight_green%28%285p%2F4%29%2F%28p-15%29=2%2F5%29\"
\n" ); document.write( "Solve and decide.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you try to solve this, one of the steps will say \"17p=4%2A120\" and not allowing for whole number solutions.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If \"Gary bought 4/5 as many mango tarts as,...\", then you will find better results!
\n" ); document.write( "
\n" );