EDIT: I for some reason was dividing by molecular mass when I of course needed to be multiplying by molecular mass to get units of grams. I also solved the matrix wrong. I'll upload the correct things. I did it a different way than your friend did, Hannah, so I'm sorry to confuse you. My post is already here, though, so I will put it up. If I could explain how your friend did it, I would. Hopefully that doesn't confuse you. This was good practice for me because I was doing the matrices wrong.
Edit 2: Ok, you guys all responded, thank you for input! Curiouscat, I tried your method first actually, but for some reason I botched it on paper, so it appears that I abandoned the easiest route right at the outset.
As for Hannah, I have no idea how the formula your friend used worked. But you can use either Cat's or my way to do it. Cat's is simple because it deals with just the molecular weight of water, which makes it very easy and keeps the numbers small. If you like to do things complicated, I'll explain my way.
Given that we know the molecular ratio between each salt in each reaction was 1:1 (both have molecular coefficients of one), we know that they are equal in moles. After that, we are given 3 different masses, so we can set up an equation for each mixture mass. We know that Moles * Molecular Weight = grams. So our next step is to set up our equations, where we add all the masses of each individual salt and set it equal to the corresponding mixture mass.
It's a property of multivariate equations (equations where we have more than one variable) that you need as many equations as you have variables. Since there are 8 different salts, we potentially have 8 different variables and would need 8 different equations. However, as stated above, due to the 1:1 molar ratios, we can say that 5 of the salts are equal in molar amount as the original three salts. This reduces us down to 3 variables. Good, because we only have 3 equations. Now we can solve them.
I put them in matrix form, which is just a slightly condensed form of a system of equations. Google augmented matrix to see an example. The gist of it is that it's the same as writing out the equations as I did in my set up picture below, but when I write it as a matrix, I leave out the x, y and z, and just write the coefficients in. Then I solve the system of equations using the method of elimination, which you should have seen in Algebra.
I show in the picture below how I set this up (I counted wrong and at some point said 6 variables instead of 8--don't ask how I managed that!). Let us know if you have more questions!