Cezar ised nails, screws, and pegs to build a model house. He used twice as many as pegs and 3 fewer nails than screws. He used 15 nails. How many pegs did he use?

number of screws ---- x

number of pegs ---- 2x
number of nails ---- x-3

x-3=15 ---> x=18
so he used 36 pegs

To find the number of pegs Cezar used, we need to set up equations based on the given information.

Let's assume the number of pegs Cezar used is "P". According to the problem, Cezar used twice as many nails as pegs, so the number of nails used is "2P". Additionally, he used 3 fewer nails than screws, which means the number of screws used is "15 + 3 = 18".

Now, let's set up equations based on the information given:

Nails: 2P = 15
Screws: 15 + 3 = 18
Pegs: P

Simplifying the equations, we have:

2P = 15 --> Divide both sides by 2: P = 15/2 = 7.5 (This doesn't make sense because the number of pegs should be a whole number)
P = number of pegs --> Since the number of pegs cannot be a fraction, it seems there might be an error or inconsistency in the problem statement or data.

Unfortunately, based on the given information, it is not possible to determine the exact number of pegs Cezar used.

Let's solve the problem step by step.

Let's assume the number of pegs used by Cezar is P.
If Cezar used twice as many pegs as nails, then the number of nails used is 15.

Now, let's determine the number of screws used.
We know that the number of nails used is 3 fewer than the number of screws.
So, the number of screws used would be 15 + 3 = 18.

Since Cezar used twice as many pegs as nails, the number of pegs used would be 2 * 15 = 30.

Therefore, Cezar used 30 pegs to build the model house.