added solution for 18, added answer for 12