Divide each side of the equation by 0.3 .
Answer:
$6.48
Step-by-step explanation:
First you divide do the $1.60 and the 10% discount which will bring you to $1.44 and then you times $1.44 and 4 1/2 to get $6.48.
28x + 44y = 964.40
21x + 33y = 723.30
Let's multiply the first equation by 4 and the second by -4
84x + 176y = 3857.6
-84x - 132y = -2893.2
Add the equations together.
0 + 44y = 964.4
Simplify
44y = 964.4
Divide both sides by 44
y = 964.4/44
Since we have the value of y, let's plug 964.4/44 into y for the first equation.
28x + 44(964.4/44) = 964.40
Simplify the left side
28x + 964.4 = 964.4
Subtract 964.4 from both sides
28x = 0
Divide both sides by 0
x = 0
In conclusion,
y = 964.4/44
x = 0
Franck's answer is better (using ~), but I just wanted to point out that the conditional in yours is slightly redundant. It's easy to forget that, since you already have a boolean value, you don't need to perform a comparison in your conditional. So you could have just done this...
<span>if x
x = false;
else
x = true;
<span>end</span></span>