Как то так
.brick-layout {
display: flex;
flex-wrap: wrap;
width: 400px;
padding: 5px;
box-sizing: content-box;
}
.brick {
min-height: 80px;
min-width: 50px;
margin: 5px;
flex-basis: 100px;
}
.color-aqua:nth-child(2) {
flex-grow: 1;
}
.color-yellow:nth-child(4) {
flex-grow: 1;
}
.color-yellow:nth-child(6) {
flex-grow: 1;
}
.color-fuchsia:nth-last-child(1){
flex-grow: 1;
}