Throughput = efficiency X bandwidth ----------- 1
as we know that efficiency of slotted aloha is .368 and throughput is nothing but how many bits are sent in per second.
then throughput of each station = $\frac{500}{5000 X 10^{-3}} = 100 bit/second$
for N station = N * 100 bit/second
put it 1,
N * 100 = .368 * 50 * $10^{3}$
N = 184