Answer:
Maya ---> 
Amy ----> 
see the procedure
Step-by-step explanation:
we know that
A relationship between two variables, x, and y, represent a proportional variation if it can be expressed in the form
or 
Let
m ---> the number of minutes
p ---> the number of puzzles
In this problem, the relationship between the variables m and p represent a proportional variation
so

Maya
it takes Maya 30 minutes to solve 5 logic puzzles
we have
m=30, p=5
Determine the value of the constant of proportionality k

substitute the given values

The value of the constant k is the same that the slope or unit rate
The equation is equal to

Amy
it takes Maya 28 minutes to solve 4 logic puzzles
we have
m=28, p=4
Determine the value of the constant of proportionality k

substitute the given values

The value of the constant k is the same that the slope or unit rate
The equation is equal to

The wording of the question is a little strange. The percentage of dog owners is already estimated at 52%, so no simulation seems useful for that. However, if you want to simulate dog ownership within any given household, you want to apply some algorithm to the given numbers so that about 52% of the time you will see the equivalent of "owns at least one dog."
We assume the numbers are uniformly distributed on 00000 .. 99999. You could, for example, take 4 of the 5-digit numbers (20 digits total), divide them into pairs of digits, and declare "owns at least one dog" if the pair of digits is 51 or less.
For example, the first set of 4 numbers so divided will be ...
95 91 15 52 41 74 05 34 10 02
and "owns at least one dog" would then be ...
no no yes no yes no yes yes yes yes . . . 6 of the 10 simulated households
_____
This sort of approach can work well if you're simulating something described by a percentage. If there is some other ratio involved, say 3 out of 248, then you could throw out any number that is 99944 or higher (403*248) and look at the remainder when dividing by 248. If it is 2 or less, your condition is satisfied.
Making use of random number tables is a bit of an art. The idea is to choose the algorithm for processing the numbers so that the desired distribution is obtained. If the desired distribution is non-uniform, then there are ways to apply functions to the numbers or simply put them in bins of different width so that you get the desired simulated result.
<em>Hope</em><em> </em><em>this</em><em> </em><em>will</em><em> </em><em>help</em><em> </em><em>u</em><em>.</em><em>.</em><em>.</em><em>.</em><em>:</em><em>)</em>
First add y on both sides to get x = y-8, then add 8 on both sides to get x + 8 = y. thats really all you can do because you don't have the slope, so it ends up being y = mx+8