Let L be the number of cookies of Lamar, S the number of cookies of Sang and E the number of cookes of Ester.
Since Lamar baked 12 more cookes than Sang, we can write the following equation:

Next, we have that Ester baked half as many cookies as Lamar, then we can write:

finally, we have that they baked 63 cookes altogether, then we have:

Using the values L = S + 12 and E = 1/2(S+12), we can find an equation and solve for S:

We have that Sang baked 18 cookies, then we can use this value to find how many cookies baked Lamar and Ester:

therefore, Lamar baked 30 cookes, Sang baked 18 cookies and Ester baked 15 cookies