Question 1084255
.
As I understand the condition, (although it is not pronunciated explicitly) they want you find the GCD (Greatest Common Divisor) 
of the numbers 9893 and 8047.


This GCD will be the length of each board.


The rest is TRIVIAL.