Teaser 2456: [Digit groups]

From The Sunday Times, 18th October 2009 [link]

A teacher asked each of her pupils to write the digits 1 to 9 in a row and then use dashes to divide their row of digits into groups, such as in 123-4-56-789. She then asked them to add up the numbers in each group and multiply all the totals together — so the above example would give the
answer 6×4×11×24 = 6336.

Billy’s answer was an odd perfect square. Jilly’s answer was also a perfect square, but in her case each group of digits had more than one digit in it.

What were Billy’s and Jilly’s rows of digits and dashes?

This puzzle was originally published with no title, and no setter was given.

[teaser2456]