Let x, y and z be the number of students allocated to Sports, Music and Drama clubs respectively.
Here,
x = y + z
y = x/2 + 20
x + y + z = 180
⇒ x − y − z = 0
x − 2y = −40
x + y + z = 180
Given equations can be written as AX = B
A =
111−1−21−101
B =
0−40180
X =
xyz
|A| = -4 ≠ 0 ⇒ A−1 exists.
adj A =
−2−1302−2−2−1−1
So,
A−1=∣A∣1×adj(A)=4121−30−22211
Now,
X=A−1B=4121−30−222110−40180=906525
∴ x = 90, y = 65, z = 25
Number of students allocated in Sports, Music and Drama are 90, 65 and 25 respectively.