Answer:
They could have kept some of the money they received from the sale of their house and given the rest to the church, stating that fact instead of telling Peter they had given him all their money.
Explanation:
The reason they where punished is because they lied about it, sinning not only against Peter but also against God.