Digit rules as a system

A divisibility rule is an equation on the digits — write both rules down and solve the system.