The value of 'q' is 122.
Opposite angles in cyclic quadrilaterals (quadrilaterals whose vertices all lie on the circumference of a single circle) will always be supplementary (meaning both angles add up to 180°). So here, we simply subtract 58° from 180° in order to get 122°.
Hope this helps.