Please check

Fewer than 45 people attending d the show
X<45

A student had $5 but does not have enough to purchas three pair of socks
3x<5

At least 127 students attended the rock concert
127>x

No more than 50 students walked in the walkathon
X>50

x < 45

3x > 5

127 ≤ x

x ≤ 50