thank you.
the html version and the msx version are slightly different. here is the correct answer at least for msx version (this is included in the answer key after a failed attempt!).