When two lines intersect, opposite angles have the same measure, which means that the bottom right angle of the triangle has a measure of 38 degrees.
When two lines are parallel and another line intersects them, corresponding angles have the same measure, so the bottom left angle has a measure of 76 degrees.
A triangle has a total angle measure of 180 degrees, so we can just subtract the two known angles to find the final angle of the triangle to find the angle we are looking for.
180= Q + 38 + 76
180= Q +114
180-114=Q
Q=66 degrees