Which of the following compounds were involved in the titration?
Yeah,  you just gotta do that.

Assume the variables $x$, $y$, $z$. You need three equations to get the values. 

First equation: Add all three and equate to $\pu{0.3148g}$.

Second equation: In the titration involving methyl orange, due to it's pH range being 3.1 to 4.4, changes color as soon as carbonates and bicarbonates are neutralized. That will give you the second equation. 

Third equation: Consider all three bases for phenolphthalein titration, since phenolphthalein changes color at 8.3 to 10.0.This gives the third equation. 

Solve all the three, and enjoy the efforts of your hard work.