I'm failing to find the correct way to do my CSS.
I need this kind of design, but I'm failing to make it responsive.

When the screen width changes, the skewed element moves, but I need it's right edges to be in the same position as the rectangle's left edges.
My code: HTML
<body>
<div class="wrapper">
<div class="subtract" style="background-color: red;"></div>
<div class="rectangle" style="background-color: red;"></div>
</div>
<div class="wrapper">
<div class="subtract" style="background-color: aqua;"></div>
<div class="rectangle" style="background-color: aqua;"></div>
</div>
</body>
CSS:
.subtract {
float: left;
width: 30%;
height: 100%;
transform: skewY(30deg) translate(0px, -100px);
}
.rectangle {
float: left;
width: 70%;
height: 100%;
}
.wrapper {
width: 100%;
height: 500px;
}
What should I do? Thanks!