Try this...
Only peak values of current in the primary and secondary circuits will be considered.
Given (omega) w = 2000 and mutual inductance = 8 mH then;
XL1 = j8 Ω, XL2 = j40 Ω and the reactance M = j16 Ω
Kirchhoff's Voltage Loop - Primary circuit;
-6 + 2.i1 + j8.i1 - j16.i2 = 0 rearranging becomes;
(2 + j8).i1 - j16.i2 = 6 ---> eq 1
KVL - Secondary circuit;
j40.i2 + 100.i2 - j16.i1 = 0 --- rewriting;
-j16.i1 + (100 + j40).i2 = 0 ----> eq 2
eq 1 and eq 2 form a simultaneous pair thus i1 and i2 can be found
by the application of matrix algebra. Due to AB syntax issues, see link below.
https://ibb.co/5rj5SCP