Let's assume the following:
L - indicates the number of text messages sent by Lisa
J - by Juan, and
K - by Kareem
Having said that, we propose the following equations

Now, let's solve this system of equations
1. from L=J-5, then

2. from K=3J, then

- we can see that Juan sent 21 text messages
3. substitute J=21 in L=J-5

- thus, Lisa sent 16 text messages
4. substitute J=21 in K=3J

- therefore, Kareem sent 63 text messages
In conclusion, they sent the following number of messages
Lisa: 16
Juan: 21
Kareem: 63