Ben Jack and Ravi shared 24x cookies equally Ben at 1/4 of his cookies and gave the rest of his cookies to Jack. Ravi ate half of his cookies and gave the rest of his cookies to Jack. How many cookies did Jack have in the end? Gave your answer in terms of x.