British coins problem (#31)