The teacher will be very surprised to see your correct solution 😉
z - 3*tan(t) - i4*sec(t) = 0
-i4*sec(t) + z - 3*tan(t) = 0