linear algebra – how to find matrix representation

Let v = (1,1,1),w = (3,2,1), and x = (−1,0,1) in R3. Let T : R3 → R3 the linear transformation defined as follows: First rotate counterclockwise in the plane perpendicular to v (with v up) by an angle of θ degrees, followed by a flip in the plane perpendicular to w, then followed by rotating counterclockwise in the plane perpendicular to x by an angle of φ degrees (with x up). Determine (T)S. You do not have to multiply all the matrices together. (A flip in the plane perpendicular to w takes the w coordinate to its negative and fixes the plane perpendicular to w.)