A 20-kg box lays flat on the surface and has a string attached to its opposite sides (string A and B). String A is attached to another 20-kg box with on an inclined surface at 50 degrees. String B on the other hand is attached to a 5-kg box suspended in the air.
(m1+m2+m3)a=m2gsin50−m3g=(m2sin50−m3)g(20+20+5)a=(20sin50−5)9.8a=2.2s2m