The first part of the problem can be solved readily by setting up a system of equations. If the number of white, black, dappled, and yellow bulls are written as W , B , D , {\displaystyle W,B,D,} and Y {\displaystyle Y} , and the number of white, black, dappled, and yellow cows are written as w , b , d , {\displaystyle w,b,d,} and y {\displaystyle y} , the problem is simply to find a solution to: