Example 3: A triangle has angles x,y, and z. The measure of angle y is 10 degrees smaller than the measure of three times angle x. The measure of angle y is half the measure of angle z. Find the measure of all three angles in the triangle. (Using matrix to solve this word problems.)