Actually, there is a hint to level 6, i.e. the message at the beginning. According to that, your second equation is the correct one.