document.write( "Question 131069: Hello members and tutors of algebra.com,

\r
\n" ); document.write( "\n" ); document.write( "I'm a high school student, in year 8 and am 13 years old. This question has propped up in my problem solving examination and I can never figure them out, particularly where there are multiple variables concerned. I have had a number of these, and I can remember it is possible to solve using diophantine equations. My teacher showed me a way to solve it that doesn't necessarily work for all of these types of problems and I'd like to know the alternative method. Here's the question and an explanation of how the answer would be obtained, is greatly appreciated:

\r
\n" ); document.write( "\n" ); document.write( "\"A cabbage and a cauliflower cost $3 in total, a cauliflower and a pumpkin cost $4 in total and a pumpkin and a cabbage cost $5 in total. Find the total cost of one of each vegetable.\"

\r
\n" ); document.write( "\n" ); document.write( "I'd like to know how you approach this problem and please teach me as I'd like to know. Thankyou very much,

\r
\n" ); document.write( "\n" ); document.write( "Jasmine \n" ); document.write( "


Algebra.Com's Answer #95707 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
\"A cabbage and a cauliflower cost $3 in total,
\n" ); document.write( "a cauliflower and a pumpkin cost $4 in total
\n" ); document.write( "and a pumpkin and a cabbage cost $5 in total.
\n" ); document.write( "Find the total cost of one of each vegetable.\"
\n" ); document.write( "------------------
\n" ); document.write( "This is one way to work the problem; I'm sure there are others.
\n" ); document.write( "Let the cauliflower cost be \"a\"
\n" ); document.write( "Let the pumpkin cost be \"b\"
\n" ); document.write( "Let the cabbage cost be \"c\"
\n" ); document.write( "--------------------------
\n" ); document.write( "Three equations
\n" ); document.write( "a + 0b + c = 3
\n" ); document.write( "a + b + 0c = 4
\n" ); document.write( "0a + b + c = 5
\n" ); document.write( "---------------------
\n" ); document.write( "Subtract the 1st equation from the 2nd to get:
\n" ); document.write( "a + 0b + c = 3
\n" ); document.write( "0 + b - c = 1
\n" ); document.write( "0 + b + c = 5
\n" ); document.write( "------------------------
\n" ); document.write( "Subtract the 2nd equation from the 3rd to get:\r
\n" ); document.write( "\n" ); document.write( "a + 0b + c = 3
\n" ); document.write( "0 + b - c = 1
\n" ); document.write( "0 + 0 + 2c = 4
\n" ); document.write( "=====================
\n" ); document.write( "Now:
\n" ); document.write( "1st: solve for c and get c = 2 (# of cabbages is 2)
\n" ); document.write( "--------
\n" ); document.write( "2nd: substitute into the 2nd equation to get:
\n" ); document.write( "b-2 = 1
\n" ); document.write( "b = 3 (# of pumpkins is 3)
\n" ); document.write( "--------
\n" ); document.write( "3rd: substitute into the 1st equation to get:
\n" ); document.write( "a + 0 + 2 = 3
\n" ); document.write( "a = 1 (# of cauliflower is 1)
\n" ); document.write( "==============
\n" ); document.write( "Good wishes on your studies.
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" );