Answer:
Arish has 14 hats
Explanation:
let x = mahd's hats
x + 4 = ali's hats
if ali has half as many as arish, therefore, arish has twice of ali's
2(x + 4)
together, they have 24 hats. let us add them all
x + x+4 + 2(x+4) = 24
x + x + 4 + 2x + 8 = 24
4x + 12 = 24
4x = 12
x = 3
mahd's hat = x
mahd has 3 hats
alis's hats = x + 4
ali has 7 hats
arish's hats = 2(x+4)
arish has 14 hats
3+7+14 = 24