A proof of the Farkas-Minkowski theorem by a tandem method