p10: solved with a sum