During AMC testing, the AoPS Wiki is in read-only mode. No edits can be made.

# Difference between revisions of "2014 AMC 10A Problems/Problem 4"

The following problem is from both the 2014 AMC 12A #3 and 2014 AMC 10A #4, so both problems redirect to this page.

## Problem

Walking down Jane Street, Ralph passed four houses in a row, each painted a different color. He passed the orange house before the red house, and he passed the blue house before the yellow house. The blue house was not next to the yellow house. How many orderings of the colored houses are possible?

$\textbf{(A)}\ 2\qquad\textbf{(B)}\ 3\qquad\textbf{(C)}\ 4\qquad\textbf{(D)}\ 5\qquad\textbf{(E)}\ 6$

## Solution 1

Attack this problem with very simple casework. The only possible locations for the yellow house $(\text{Y})$ is the $3^\text{rd}$ house and the last house.

Case 1: $\text{Y}$ is the $3^\text{rd}$ house.

The only possible arrangement is $\text{B}-\text{O}-\text{Y}-\text{R}$

Case 2: $\text{Y}$ is the last house.

There are two possible ways:

$\text{B}-\text{O}-\text{R}-\text{Y}$ and

$\text{O}-\text{B}-\text{R}-\text{Y}$ so our answer is $\boxed{\textbf{(B) } 3}$

## Solution 2

There are 24 possible arrangements of the houses. The number of ways with the blue house next to the yellow house is $3! \cdot 2!=12$, as we can consider the arrangements of (BY), O, and R. Thus there are $24-12$ arrangements with the blue and yellow houses non-adjacent.

Exactly half of these have the blue house before the yellow house by symmetry, and exactly half of those 6 arrangements have the orange house before the red house (also by symmetry), so our answer is $12 \cdot \frac{1}{2} \cdot \frac{1}{2}= \boxed{\textbf{(B) } 3}$

## Solution 3

This solution is an alternate to Solution 1.

First, we realize that the blue house is the first or second one. If the blue house is the first, then the orange house must be second, leading to $2$ cases ($\text{BORY}$, $\text{BOYR}$). If the blue house is second, the orange house must be first and the yellow house should be fourth, leading to $1$ case ($\text{OBRY}$). Therefore, our answer is $\boxed{\textbf{(B) } 3}$.

~MathFun1000

~savannahsolver